% !Mode:: "TeX:UTF-8"
% 上海交通大学 数字图像处理 实验报告


\documentclass[UTF8,cjkfonts]{ctexart}
\usepackage[top=1in, bottom=1in, left=1.25in, right=1.25in]{geometry}%页边距
\usepackage{amsmath,amsthm,amssymb}%数学包
\usepackage{booktabs,longtable}%表格包
\usepackage{listings}%程序设计代码包
\usepackage{graphicx}%图形包
\newsavebox{\sjtulogo}
\sbox{\sjtulogo}{\includegraphics[totalheight=0.45in]{sjtulogo.jpg}}


\usepackage{tikz}
\usetikzlibrary{arrows}

\usepackage{fancyhdr}%页眉和页角
\pagestyle{fancy}
\lhead{\usebox{\sjtulogo}}
\chead{}
\rhead{\bfseries 数字图像处理实验报告}
\lfoot{}
\cfoot{\leftmark}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

\usepackage[CJKbookmarks,colorlinks=true,breaklinks=true,linkcolor=black,citecolor=black,urlcolor=black]{hyperref}
%\usepackage[CJKbookmarks,breaklinks=true,linkcolor=black]{hyperref}

\begin{document}

\title{数字图像处理实验报告}
\author{夏申频\thanks{学号:1100332006\quad \url{mailto:zarraxx@gmail.com}}\;\thanks{上海交通大学计算机系工程硕士班}\;\thanks{上海交通大学医学院附属第三人民医院计算机中心}}

\maketitle
\tableofcontents

\clearpage
\lstset{frame=shadowbox, escapeinside=``, xleftmargin=2em,xrightmargin=2em, aboveskip=1em}
\lstset{language=Python}%这条命令可以让LaTeX排版时将Python键字突出显示
\lstset{breaklines}%这条命令可以让LaTeX自动将长的代码行换行排版
\lstset{extendedchars=false}%这一条命令可以解决代码跨页时，章节标题，页眉等汉字不显示的问题

\theoremstyle{remark}
\newtheorem{cdefi}{\bf 定义}

%\section{前言}
\include{intro}


%\section{直方图均衡化}
\include{q1_hist_equal}

%\section{几何变换}
\include{q2_geometric_transform}

%\section{空域滤波}
\include{q3_spatial_filtering}

%\section{快速傅立叶变换}
\include{q4_fft}

%\section{图像复原}
\include{q5_restoration}

%\section{图像压缩}
\include{q6_compression}

%\section{边缘检测}
\include{q7_edge_detection}




%%\section{直方图均衡化}
%\input{q1_hist_equal}
%
%%\section{几何变换}
%\input{q2_geometric_transform}
%
%%\section{空域滤波}
%\input{q3_spatial_filtering}
%
%%\section{快速傅立叶变换}
%\input{q4_fft}
%
%%\section{图像复原}
%\input{q5_restoration}
%
%%\section{图像压缩}
%\input{q6_compression}
%
%%\section{边缘检测}
%\input{q7_edge_detection}

\end{document}

%%%%%%%%%%%%%%%%%%% END %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% How to compile:
%   install TeXLive 2009 as described below;
%   put Adobe fonts into ~/.fonts (Linux) or C:\WINDOWS\fonts (Windows)
%   run command sequences:
%       xelatex a.tex; xelatex a.tex
%           or
%       pdflatex a.tex; pdflatex a.tex
%           or
%       latex a.tex ; latex a.tex; dvipdfmx a.dvi
%           or (requires ghostscript)
%       latex a.tex ; latex a.tex; dvips a.dvi; ps2pdf a.ps
%
% If you use 'winfonts' or 'adobefonts' option with latex/pdflatex, copy
% sim*.ttf and simsun.ttc into $TEXMFHOME/fonts/truetype/sim/ directory.
% Run `kpsexpand '$TEXMFHOME'` to get the value of $TEXMFHOME.
%
% If you use 'winfonts' option with xelatex on Linux, copy sim*.ttf and
% simsun.ttc into ~/.fonts .
%
% See documents of ctex, zhmetrics, fontspec and xetex to learn how to
% use new fonts.

%%%%%%%%%%%%%%%%%%% ENVIRONMENT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Tested with TeXLive 20090909 on Debian Squeeze:
%  xetex        r14602  3.1415926-2.2-0.9995.2
%  pdftex       r14549  3.1415926-1.40.10-2.2
%  ctex         r14619  0.93
%  zhmetrics    r14469
%  cjk          r15155  4.8.2
%  xecjk        r14567  2.3.5
%  arphic       r13822
%
% Way to install TeXLive 2009:
%  install-tl -repository http://ftp.ctex.org/mirrors/texlive/tlnet/  -profile texlive.profile
%
% Content of texlive.profile(without the leading "%" and white spaces):
%   # texlive.profile written on Fri Sep  4 07:00:20 2009 UTC
%   # It will NOT be updated and reflects only the
%   # installation profile at installation time.
%   selected_scheme scheme-basic
%   TEXDIR ~/texlive/2009
%   TEXDIRW ~/texlive/2009
%   TEXMFHOME ~/texmf
%   TEXMFLOCAL ~/texlive/texmf-local
%   TEXMFSYSCONFIG ~/texlive/2009/texmf-config
%   TEXMFSYSVAR ~/texlive/2009/texmf-var
%   binary_i386-linux 1
%   collection-basic 1
%   collection-fontsrecommended 1
%   collection-langcjk 1
%   collection-langlatin 1
%   collection-latex 1
%   collection-latexrecommended 1
%   collection-xetex 1
%   from_dvd 0
%   option_desktop_integration 1
%   option_doc 0
%   option_file_assocs 1
%   option_fmt 1
%   option_letter 0
%   option_path 0
%   option_post_code 1
%   option_src 0
%   option_sys_bin /usr/local/bin
%   option_sys_info /usr/local/info
%   option_sys_man /usr/local/man
%   option_w32_multi_user 1
%   option_write18_restricted 1

% View the generated pdf on Debian Squeeze(20090909) with:
%  xpdf (3.02-1.4+lenny1) + xpdf-chinese-simplified (20040727-1, depends cmap-adobe-gb1 (0+20051207-5))
%  evince (2.26.2-2) + poppler-data (0.2.1-5)
% !!! Remember installing poppler-data because it contains data about cmap-adobe-*. 